package com.dk.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.dk.mapper.PersonRoleMapper;
import com.dk.mapper.TRoleMapper;
import com.dk.pojo.TRole;
import com.dk.service.TRoleService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

@Service
@org.springframework.stereotype.Service
public class TRoleServiceImpl implements TRoleService {
    @Autowired
    private TRoleMapper tRoleMapper;
    @Autowired
    private PersonRoleMapper personRoleMapper;
    @Override
    public List<TRole> getInfo() {

        return tRoleMapper.selectByExample(null);
    }

    @Override
    public List<Integer> getinfoByUid(Integer id) {
        List<Integer> list = personRoleMapper.getInfoById(id);
        return list;
    }

}
